package com.cq.service.Impl;

import com.cq.dao.VisitDao;
import com.cq.pojo.Visit;
import com.cq.service.VisitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lap
 * @version 1.0
 * @date 2021/8/16 9:31
 */

@Service
public class VisitServiceImpl implements VisitService {

    @Autowired
    private VisitDao visitDao;

    @Override
    public Integer insertVisit(Visit visit) {
        return visitDao.insertVisit(visit);
    }

    @Override
    public List<Visit> selectVisit(Visit visit) {
        return visitDao.selectVisit(visit);
    }
}
